package com.xy.wsl.api.sql.entity.ThirdApp;

import cn.hutool.core.date.DateTime;
import com.gitee.sunchenbin.mybatis.actable.annotation.*;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;

import java.util.Date;

@Data
@Table(comment = "用户基础信息表")
public class ThirdApp {
    @Column(comment = "自增ID")
    @IsKey
    @IsAutoIncrement
    private long serid;

    @Column
    private String title;
    @Column
    private String appid;
    @Column
    private String appsecret;
    @Column
    private long expiresIn;
    @Column
    private String token;
    @Column
    private long tokenTime;
    @Column
    private String type;

    @Column(name = "CREATETIME",comment = "录入时间")
    @ColumnType(MySqlTypeConstant.TIMESTAMP)
    @DefaultValue("CURRENT_TIMESTAMP")
    private Date createTime;
}
